package Communications;

import GUI.MainFrame;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

/**
 *
 */
public class Register {

    PrintWriter byteOut;
    BufferedReader byteIn;

    public Register()throws IOException {

        /*Socket s = new Socket(Settings.serverName,Settings.portNumber);

        byteOut = new PrintWriter(s.getOutputStream(), true);
        byteIn = new BufferedReader( new InputStreamReader( s.getInputStream()));  */

    }
    public void register(String name,String surname,String address) throws IOException{

        String message = "";

        message += MainFrame.state + "|R|"+name+"|"+surname+"|"+address+"|%";

        System.out.println("String to be sent: "+message);

       // byteOut.print(message);

        //System.out.println(byteIn.read());

    }
}
